import request from '@/utils/request'

export function searchPriceInfoApi(query) {
    return request({
        url: '/meter/priceConfig/list',
        method: 'get',
        params: query
    })
}

export function addPriceInfoApi(data) {
    return request({
        url: '/meter/priceConfig',
        method: 'post',
        data: data
    })
}

export function searchPriceInfoByIdApi(id){
    return request({
        url: '/meter/priceConfig/'+id,
        method: 'get'
    })
}

export function editPriceInfoApi(data){
    return request({
        url: '/meter/priceConfig',
        method: 'put',
        data: data
    })
}

export function deletePriceInfoApi(id) {
    return request({
        url: '/meter/priceConfig/delete/'+id,
        method: 'delete'
    })
}